﻿// <copyright file="HyetographPoint.cs" company="City of Portland, BES-ASM">
// </copyright>
// <summary>HyetographPoint class</summary>

namespace BESASM.EMGAATS.BusinessClasses
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

  /// <summary>
  /// Manages a time and rainfall intensity (in/hour) pair
  /// </summary>
  public struct HyetographPoint
  {
    /// <summary>
    /// The time of the rainfall intensity record
    /// </summary>
    public DateTime DateTime;

    /// <summary>
    /// The rainfall intensity in inches per hour
    /// </summary>
    public double IntensityInPerHr;

    /// <summary>
    /// Initializes a new instance of the <see cref="HyetographPoint" /> struct
    /// </summary>
    /// <param name="aDateTime">The date and time</param>
    /// <param name="anIntensityInPerHr">The intensity in inches per hour</param>
    public HyetographPoint(DateTime aDateTime, double anIntensityInPerHr)
    {
      this.DateTime = aDateTime;
      this.IntensityInPerHr = anIntensityInPerHr;
    }
  }
}
